package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandAddNewParam implements Serializable {

    @NotNull(message = "必须提交品牌名称！")
    @ApiModelProperty(value = "品牌名称",required = true,example = "小天")
    private String name;

    @NotNull(message = "必须提交拼音名称！")
    @ApiModelProperty(value = "拼音名称",required = true,example = "xiaotian")
    private String pinyin;


    @ApiModelProperty(value = "logo名称",required = true,example = "xiaotian")
    private String logo;


    @ApiModelProperty(value = "品牌简介",required = true,example = "这是小天")
    private String description;

    @ApiModelProperty(value = "关键词",required = true,example = "k1,k2")
    private String keywords;

    @NotNull(message = "必须提交排序序号")
    @Range(max = 99,message = "排序序号值必须0~99之间")
    @ApiModelProperty(value = "排序序号，必须是0~99之间的数字",required = true,example = "95")
    private Integer sort;

    @NotNull(message = "必须提交是否开启")
    @Range(max = 1,message = "是否开启值必须0~1之间")
    @ApiModelProperty(value = "是否开启，必须是0~1之间的数字",required = true,example = "1")
    private Integer enable;

}
